package com.nygym.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品列表对象 product
 * 
 * @author slh
 * @date 2022-11-28
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品进价 */
    @Excel(name = "商品进价")
    private String purPrice;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private String sellPrice;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long inventory;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPurPrice(String purPrice) 
    {
        this.purPrice = purPrice;
    }

    public String getPurPrice() 
    {
        return purPrice;
    }
    public void setSellPrice(String sellPrice) 
    {
        this.sellPrice = sellPrice;
    }

    public String getSellPrice() 
    {
        return sellPrice;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("purPrice", getPurPrice())
            .append("sellPrice", getSellPrice())
            .append("inventory", getInventory())
            .append("remark", getRemark())
            .toString();
    }
}
